//
//  TopMenuTableView.m
//  danpin
//
//  Created by chuangjia on 19/11/2015.
//  Copyright © 2015 chuangjia. All rights reserved.
//

#import "TopMenuTableView.h"

@implementation TopMenuTableView

/*

- (instancetype)initWithFrame:(CGRect)frame style:(UITableViewStyle)style
{
    self = [super initWithFrame:frame style:style];
    
    if (self) {
        _lineView = [[UIView alloc]init];
        _lineView.backgroundColor = [UIColor greenColor];//colorWithRed:0.98 green:0.98 blue:0.98 alpha:1];
        [self addSubview:_lineView];
    }
    
    return self;
}
//*/
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
    CGContextRef ctx = UIGraphicsGetCurrentContext();
    CGContextSetRGBStrokeColor(ctx, 0.6, 0.6, 0.6, 0.5);
    CGContextSetLineWidth(ctx, 0.5);
    
    CGContextMoveToPoint(ctx, 0, 0);
    
    
    CGContextAddLineToPoint(ctx,0, self.bounds.size.height);
    
    
    CGContextStrokePath(ctx);
    
    
    
  //  _lineView.frame = CGRectMake(0, 0, 0.5, self.bounds.size.height);
}

//*/
@end
